<!DOCTYPE html>
<html>

<head>
    <title></title>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link href="../bootstrap-5.1.3-dist/css/bootstrap.css" rel="stylesheet">
    <script src="../bootstrap-5.1.3-dist/js/bootstrap.bundle.min.js"></script>
</head>

<body class="container">
    <h3 align="center">定义模态框<h3>
            <a href="#myModal" class="btn btn-default" data-bs-toggle="modal">打开模态框</a>
            <div id="myModal" class="modal">
                <div class="modal-dialog">
                    <div class="modal-content">
                        <h3>模态框</h3>
                        <p>这是弹出的模态框内容</p>
                    </div>
                </div>
            </div>
</body>

</html>